package com.wzh.design.newDesignPattern.observerPattern;

/**
 * @description:
 * @author: WZH
 * @time: 2022/3/23 14:03
 */
public class BinaryObserver extends Observer {

   public BinaryObserver(Student student){
       this.student=student;
       this.student.attach(this);
   }


    @Override
    public void update() {
        System.out.println( "Octal String: "
                + Integer.toOctalString( student.getState() ) );
    }
}
